package frogFarm;

public class Frog {
	
	private String color1;
	private String color2;
	private String decoration;
	private String name;
	private String action;
	int price;
	int priceM1;
	int priceM2;
	int priceM3;
	
	public void setColor1(String newColor1){
		color1 = newColor1;
	}
	public void setColor2(String newColor2){
		color2 = newColor2;
	}
	public String getColor1(){
		return color1;
	}
	public String getColor2(){
		return color2;
	}
	public String getDecoration(){
		return decoration;
	}	
	public void setDecoration(String newDecoration){
		decoration = newDecoration;
	}
	public void setName(String newName){
		name = newName;
	}
	public String getName(){
		return name;
	}	
	public void setAction(String newAction){
		action = newAction;
	}
	public String getAction(){
		return action;
	}
	
	public void getInfo(){
		System.out.println(getName() + " the " + getColor1() + " and " + getColor2() + 
				" " + getDecoration() + " frog is " + getAction());
	}
	
	public int sellFrog(){
		
		
		if (getColor1() == "red"){
			priceM1 = 5;
		}
		if (getColor1() == "green"){
			priceM1 = 6;
		}
		if (getColor1() == "blue"){
			priceM1 = 7;
		}
		if (getColor1() == "orange"){
			priceM1 = 8;
		}
		if (getColor1() == "yellow"){
			priceM1 = 9;
		}
		if (getColor1() == "purple"){
			priceM1 = 10;
		}
		if (getColor1() == "pink"){
			priceM1 = 11;
		}
		if (getColor1() == "turqoise"){
			priceM1 = 13;
		}
		if (getColor1() == "purple"){
			priceM1 = 12;
		}
		
		if (getColor2() == "red"){
			priceM2 = 5;
		}
		if (getColor2() == "green"){
			priceM2 = 6;
		}
		if (getColor2() == "blue"){
			priceM2 = 7;
		}
		if (getColor2() == "orange"){
			priceM2 = 8;
		}
		if (getColor2() == "yellow"){
			priceM2 = 9;
		}
		if (getColor2() == "purple"){
			priceM2 = 10;
		}
		if (getColor2() == "pink"){
			priceM2 = 11;
		}
		if (getColor2() == "turqoise"){
			priceM2 = 13;
		}
		if (getColor2() == "purple"){
			priceM2 = 12;
		}
		
		if(getDecoration() == "solid"){
			priceM3 = 10;
		}
		if(getDecoration() == "polka-dotted"){
			priceM3 = 12;
		}
		if(getDecoration() == "striped"){
			priceM3 = 14;
		}
		
		price = priceM1 * priceM2 * priceM3;
		return price;
	}
	

}
